package com.wisesoft.ncp.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by lvchang on 2020/3/9.
 */
@Entity
@Table(name = "tb_virus")
public class VirusEntity implements Serializable{

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public VirusEntity()
    {

    }

    public VirusEntity(Long id, String district, Integer number) {
        this.id = id;
        this.district = district;
        this.number = number;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "id")
    private Long id;

    @Column(name = "district")
    private String district;

    @Column(name = "number")
    private Integer number;
}
